`include "instructions.vh"

module decode1(
        // from previous stage
        input           i_pipe_valid,

        // to next stage
        output          o_pipe_valid,
        output  [31:0]  o_pipe_instr,
        output  [17:0]  o_pipe_instr_class,

        // from outside of cpu
        input [31:0] i_instr
);

assign o_pipe_valid = i_pipe_valid;
assign o_pipe_instr = i_instr;

instruction_decoder u_instruction_decoder(
  .i_instr(i_instr),
  .o_instr_class(o_pipe_instr_class[16:0])
);

assign o_pipe_instr_class[17] = 1'b0;

endmodule
